package com.hank.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author hank
 * @since 2023-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="用户信息表")
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户 ID，自增长")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户账号，不允许为空")
    private String username;

    @ApiModelProperty(value = "用户密码，不允许为空")
    private String password;

    @ApiModelProperty(value = "用户手机号，可以为空")
    private String phoneNumber;

    @ApiModelProperty(value = "用户邮箱，可以为空")
    private String email;

    @ApiModelProperty(value = "用户 Gitee 账号，可以为空")
    private String gitee;

    @ApiModelProperty(value = "用户 GitHub 账号，可以为空")
    private String github;

    @ApiModelProperty(value = "用户昵称，可以为空")
    private String nickname;

    @ApiModelProperty(value = "用户头像 URL，可以为空")
    private String avatarUrl;

    @ApiModelProperty(value = "用户地址，可以为空")
    private String address;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime registerTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "用户状态")
    private Boolean status;


}
